package com.summer.safe.config.beetl;

import com.summer.safe.utils.ToolUtil;
import com.summer.safe.tag.RadioTag;
import com.summer.safe.tag.SelectTag;
import org.beetl.ext.spring.BeetlGroupUtilConfiguration;

/**
 * beetl拓展配置, 绑定一些工具类, 方便在模板中直接调用
 */
public class BeetlConfiguration extends BeetlGroupUtilConfiguration {

    /**
     * 注册自定义方法
     */
    @Override
    public void initOther() {
        groupTemplate.registerFunctionPackage("shiro", new ShiroExt());
        groupTemplate.registerFunctionPackage("fnc", new ToolUtil());
        groupTemplate.registerTag("select", SelectTag.class);
        groupTemplate.registerTag("radio", RadioTag.class);
    }
}
